.gd-select {
    position: relative;
    border: 1px solid #DCDFE6;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
    line-height: 20px;
    .gd-select-title {
        cursor: pointer;
        padding: 6px 8px;
        display: flex;
        align-items: center;
        .label {
            text-align: left;
            color: #606266;
            flex: 1;
        }
        .iconfont {
            margin-left: 6px;
            font-size: 12px;
            transition: transform .3s;
            &.is-reverse {
                transform: rotate(-180deg);
            }
        }
    }
    .gd-select-wrap {
        text-align: left;
        padding-top: 6px;
        padding-bottom: 6px;
        border: 1px solid #DCDFE6;
        border-radius: 4px;
        overflow: auto;
        position: absolute;
        display: none;
        max-height: 150px;
        left: -1px;
        right: -1px;
        z-index: 302;
        background-color: #FFF;
        top: 100%;
        &::-webkit-scrollbar {
            border-radius: 2px;
            width: 4px;
        }
        &::-webkit-scrollbar-thumb {
            background: #C0C4CC;
        }
        li {
            cursor: pointer;
            padding: 8px;
            &:first-child {
                margin-top: 0;
            }
            &:hover {
                background-color: #EEE;
            }
            &.is-active {
                color: #1890ff;
            }
        }
    }
}
.gd-btn-group {
    display: flex;
    .gd-btn {
        color: #303133;
        background-color: #FFF;
        border: 1px solid #DCDFE6;
        border-left: 0;
        padding: 8px 16px;
        border-radius: 0;
        width: auto;
        @mixin group-btn-hover {
            color: #1890FF;
            background-color: #E6F3FF;
        }
        &:hover {
            @include group-btn-hover;
        }
        &:first-child {
            border-left: 1px solid #DCDFE6;
            border-radius: 4px 0 0 4px;
            box-shadow: none !important;
        }
        &:last-child {
            margin-right: 0;
            border-radius: 0 4px 4px 0;
        }
        &.is-active {
            box-shadow: -1px 0 0 0 #1890FF;
            border-color: #1890FF;
            color: #1890FF;
            background-color: #E6F3FF;
        }
    }
}
.gd-btn {
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    border-radius: 4px;
    padding: 11px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: none;
    text-align: center;
    &.btn-default {
        color: #1890FF;
        background-color: #FFF;
    }
    &.btn-info {
        color: #FFF;
        background-color: #1890ff;
    }
    &:hover {
        opacity: 0.7;
    }
}
.gd-btn-select {
    .label {
        font-size: 14px;
        font-weight: bold;
        line-height: 20px;
        color: #303133;
    }
    .btn-select {
        display: grid;
        grid-template-columns: repeat(4, 72px);
        gap: 8px;
        .btn-select-item {
            cursor: pointer;
            color: #909399;
            font-size: 12px;
            line-height: 20px;
            text-align: center;
            padding-top: 4px;
            padding-bottom: 4px;
            background-color: #F5F7FA;
            border-radius: 4px;
            white-space: nowrap;
            &.is-active {
                color: #FFF;
                background-color: #1890FF;
            }
        }
    }
}
.gd-checkbox {
    cursor: pointer;
    display: flex;
    align-items: center;
    input {
        border: 1px solid #D9D9D9;
        border-radius: 2px;
    }
    .label {
        white-space: nowrap;
        font-size: 14px;
        line-height: 20px;
        color: #303133;
        margin-left: 8px;
    }
}
.gd-checkbox-group {
    display: flex;
    align-items: center;
    &.vertical {
        display: initial;
        .gd-checkbox {
            margin-left: 0;
        }
    }
    .gd-checkbox {
        margin-left: 24px;
        &:first-child {
            margin-left: 0;
        }
    }
}

.gd-input {
    &[type='text'], &[type='password'] {
        width: 100%;
        background-color: #fff;
        background-image: none;
        border-radius: 4px;
        border: 1px solid #dcdfe6;
        box-sizing: border-box;
        color: #606266;
        display: inline-block;
        font-size: inherit;
        height: 20px;
        line-height: 20px;
        outline: 0;
        padding: 0 15px;
        -webkit-appearance:none;
        -webkit-transition: border-color .2s cubic-bezier(.645,.045,.355,1);
        transition: border-color .2s cubic-bezier(.645,.045,.355,1);
        &:hover {
            border-color: #c0c4cc;
        }
        &:focus {
            border-color: #1890ff;
            outline: 0;
        }
        &::-webkit-input-placeholder {
            color: #C0C4CC;
        }
    }
}
.gd-input-group {
    position: relative;
    .gd-input {
        padding-right: 75px;
    }
    .gd-input__append {
        width: 75px;
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        .gd-btn {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }
    }
}
.gd-popover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    .gd-popover__inner {
        display: none;
        position: absolute;
        font-size: 14px;
        line-height: 20px;
        color: #FFF;
        background-color: #303133;
        border-radius: 4px;
        padding: 9px 12px;
        white-space: nowrap;
        z-index: 99;
        &.gd-popover-right {
            right: calc(100% + 12px);
            &::after {
                content: "";
                width: 0;
                height: 0;
                position: absolute;
                left: 100%;
                top: 50%;
                transform: translate(0, -50%);
                border-top: 5px solid transparent;
                border-bottom: 5px solid transparent;
                border-left: 5px solid #303133;
            }
        }
        &.gd-popover-top {
            bottom: calc(100% + 6px);
            left: 50%;
            transform: translate(-50%, 0);
            &::after {
                content: "";
                width: 0;
                height: 0;
                position: absolute;
                left: 50%;
                top: 100%;
                transform: translate(-50%, 0);
                border-top: 5px solid #303133;
                border-right: 5px solid transparent;
                border-left: 5px solid transparent;
            }
        }
    }
}
.gd-collapse {
    .gd-collapse-item {
        border-radius: 6px;
        border: 1px solid #EBEEF5;
        &.is-collapse {
            .gd-collapse-item__wrap {
                display: block;
            }
            .gd-collapse-item__title {
                border-bottom: 1px solid #EBEEF5;
            }
        }
        .gd-collapse-item__title {
            padding: 24px 32px;
            display: flex;
            align-items: center;
            cursor: pointer;
            .gd-collapse-item__label {
                flex: 1;
                text-align: left;
            }
        }
        .gd-collapse-item__wrap {
            overflow: hidden;
            display: none;
            padding: 24px 32px;
            text-align: left;
            will-change: height;
            &.gd-collapse-transition {
                transition: height .3s, padding-top .3s, padding-bottom .3s;
            }
        }
    }
}
.gd-progress-circle {
    position:relative;
    width:84px;
    height:84px;
    .gd-progress-circle__num {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    .gd-progress-circle__line {
        position:absolute;
        width:50%;
        height:100%;
        top:0;
        overflow:hidden;
    }
    .gd-progress-circle__l {
        top:0;
        left:0;
    }
    .gd-progress-circle__r {
        top:0;
        -webkit-transform:rotate(180deg);
        right:0
    }
    .gd-progress-circle__c {
        width:200%;
        height:100%;
        border:8px solid transparent;
        border-radius:50%;
        position:absolute;
        box-sizing:border-box;
        top:0;
        -webkit-transform:rotate(-45deg);
        border-top:8px solid #EBEEF5;
        border-left:8px solid #EBEEF5;
        &.gd-progress-circle__lm {
            border-bottom: 8px solid #3aa0ff;
            border-right: 8px solid #3aa0ff;
        }
        &.gd-progress-circle__rm {
            border-bottom: 8px solid #3aa0ff;
            border-right: 8px solid #3aa0ff;
        }
    }
    .gd-progress-circle__tx {
        position: absolute;
        top: calc(100% + 5px);
        left: 50%;
        transform: translate(-50%);
    }
}
.gd-progress {
    background-color: #EBEEF5;
    border-radius: 4px;
    height: 8px;
    .gd-progress-bar {
        height: inherit;
        border-radius: inherit;
    }
}
.gd-search {
    box-sizing: border-box;
    cursor: pointer;
    .gd-search__wrap {
        color: #909399;
        display: flex;
        align-items: center;
        background-color: #FFF;
        padding: 12px 16px;
        border-radius: 4px;
        border: 1px solid #FFF;
        .iconfont {
            font-size: 13px;
            margin-right: 10px;
        }
        input {
            flex: 1;
            font-size: 12px;
            line-height: 20px;
            font-weight: 400;
            border: none;
            outline: none;
            padding-right: 20px;
            color: #909399;
            &::-webkit-input-placeholder {

            }
        }
    }
    .search-wrap {
        display: none;
        box-sizing: border-box;
        position: absolute;
        z-index: 1;
        top: 100%;
        left: 0;
        width: 100%;
        border-radius: 8px;
        background-color: #FFF;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.06);
        .search-tab {
            display: flex;
            justify-content: center;
            border-bottom: 1px solid rgba(143, 146, 161, .1);
            font-size: 14px;
            line-height: 24px;
            color: #303133;
            li {
                cursor: pointer;
                padding: 16px 0;
                margin-right: 48px;
                &:last-child {
                    margin-right: 0;
                }
            }
            .is-active {
                color: #1890FF;
                border-bottom: 2px solid #1890FF;
            }
        }
    }
    .result-list {
        box-sizing: border-box;
        padding: 12px 16px;
        max-height: 392px;
        min-height: 210px;
        position: relative;
        overflow: auto;
        &::-webkit-scrollbar {
            border-radius: 2px;
            width: 4px;
        }
        &::-webkit-scrollbar-thumb {
            background: #C0C4CC;
        }
    }
    .result-item {
        display: flex;
        align-items: center;
        border-radius: 8px;
        padding: 12px 8px;
        &:hover {
            background-color: #F5F7FA;
        }
        .avatar {
            position: relative;
            .img-avatar {
                display: block;
                width: 48px;
                height: 48px;
                border-radius: 50%;
            }
            .icon {
                width: 16px;
                height: 16px;
                position: absolute;
                right: 0;
                bottom: 0;
                color: #4D97F4;
            }
        }
        .user-info {
            text-align: left;
            font-size: 14px;
            line-height: 1;
            margin-left: 16px;
            .title {
                color: #303133;
            }
            .sub-title {
                margin-top: 6px;
                color: #909399;
            }
        }
    }
}
/*
.gd-search {
    outline: none;
    position: relative;
    .gd-search__wrap {
        font-size: 14px;
        line-height: 20px;
    }
    .search-wrap {
        display: none;
        box-sizing: border-box;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        border-radius: 8px;
        background-color: #FFF;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.06);
        .search-tab {
            display: flex;
            justify-content: center;
            border-bottom: 1px solid rgba(143, 146, 161, .1);
            font-size: 14px;
            line-height: 24px;
            color: #303133;
            li {
                cursor: pointer;
                padding: 16px 0;
                margin-right: 48px;
                &:last-child {
                    margin-right: 0;
                }
            }
            .is-active {
                color: #1890FF;
                border-bottom: 2px solid #1890FF;
            }
        }
    }
    .result-list {
        box-sizing: border-box;
        padding: 12px 16px;
        max-height: 392px;
        min-height: 210px;
        position: relative;
        overflow: auto;
        &::-webkit-scrollbar {
            border-radius: 2px;
            width: 4px;
        }
        &::-webkit-scrollbar-thumb {
            background: #C0C4CC;
        }
    }
    .result-item {
        display: flex;
        align-items: center;
        border-radius: 8px;
        padding: 12px 8px;
        &:hover {
            background-color: #F5F7FA;
        }
        .avatar {
            position: relative;
            .img-avatar {
                display: block;
                width: 48px;
                height: 48px;
                border-radius: 50%;
            }
            .icon {
                width: 16px;
                height: 16px;
                position: absolute;
                right: 0;
                bottom: 0;
                color: #4D97F4;
            }
        }
        .user-info {
            text-align: left;
            font-size: 14px;
            line-height: 1;
            margin-left: 16px;
            .title {
                color: #303133;
            }
            .sub-title {
                margin-top: 6px;
                color: #909399;
            }
        }
    }
}*/

.gd-score {
    &.red {
        color: #F56C6C;
    }
    &.green {
        color: #67C23A;
    }
    &.orange {
        color: #FF873F;
    }
    &.gray {
        color: #909399;
    }
}